Optimal. Leaf size=87 \[ \frac{(e x)^n}{a e n}-\frac{2 b x^{-n} (e x)^n \tan ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{a+b}}\right )}{a d e n \sqrt{a-b} \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14618, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.227, Rules used = {5440, 5436, 3783, 2659, 208} \[ \frac{(e x)^n}{a e n}-\frac{2 b x^{-n} (e x)^n \tan ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{a+b}}\right )}{a d e n \sqrt{a-b} \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5440
Rule 5436
Rule 3783
Rule 2659
Rule 208
Rubi steps
\begin{align*} \int \frac{(e x)^{-1+n}}{a+b \text{sech}\left (c+d x^n\right )} \, dx &=\frac{\left (x^{-n} (e x)^n\right ) \int \frac{x^{-1+n}}{a+b \text{sech}\left (c+d x^n\right )} \, dx}{e}\\ &=\frac{\left (x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{a+b \text{sech}(c+d x)} \, dx,x,x^n\right )}{e n}\\ &=\frac{(e x)^n}{a e n}-\frac{\left (x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{1+\frac{a \cosh (c+d x)}{b}} \, dx,x,x^n\right )}{a e n}\\ &=\frac{(e x)^n}{a e n}+\frac{\left (2 i x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{1+\frac{a}{b}+\left (1-\frac{a}{b}\right ) x^2} \, dx,x,i \tanh \left (\frac{1}{2} \left (c+d x^n\right )\right )\right )}{a d e n}\\ &=\frac{(e x)^n}{a e n}-\frac{2 b x^{-n} (e x)^n \tan ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{a+b}}\right )}{a \sqrt{a-b} \sqrt{a+b} d e n}\\ \end{align*}
Mathematica [A] time = 0.146243, size = 80, normalized size = 0.92 \[ \frac{(e x)^n \left (\frac{2 b x^{-n} \tan ^{-1}\left (\frac{(b-a) \tanh \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{a^2-b^2}}\right )}{\sqrt{a^2-b^2}}+c x^{-n}+d\right )}{a d e n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.121, size = 317, normalized size = 3.6 \begin{align*}{\frac{x}{an}{{\rm e}^{-{\frac{ \left ( -1+n \right ) \left ( i{\it csgn} \left ( ie \right ){\it csgn} \left ( ix \right ){\it csgn} \left ( iex \right ) \pi -i\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{2}{\it csgn} \left ( ie \right ) -i\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{2}{\it csgn} \left ( ix \right ) +i \left ({\it csgn} \left ( iex \right ) \right ) ^{3}\pi -2\,\ln \left ( e \right ) -2\,\ln \left ( x \right ) \right ) }{2}}}}}-2\,{\frac{b{{\rm e}^{-i/2\pi \,n{\it csgn} \left ( ie \right ){\it csgn} \left ( ix \right ){\it csgn} \left ( iex \right ) }}{{\rm e}^{i/2\pi \,n{\it csgn} \left ( ie \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}}}{{\rm e}^{i/2\pi \,n{\it csgn} \left ( ix \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}}}{{\rm e}^{-i/2\pi \,n \left ({\it csgn} \left ( iex \right ) \right ) ^{3}}}{{\rm e}^{i/2\pi \,{\it csgn} \left ( ie \right ){\it csgn} \left ( ix \right ){\it csgn} \left ( iex \right ) }}{{\rm e}^{-i/2\pi \,{\it csgn} \left ( ie \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}}}{{\rm e}^{-i/2\pi \,{\it csgn} \left ( ix \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}}}{{\rm e}^{i/2\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{3}}}{e}^{n}{{\rm e}^{c}}}{aned\sqrt{{a}^{2}{{\rm e}^{2\,c}}-{{\rm e}^{2\,c}}{b}^{2}}}\arctan \left ( 1/2\,{\frac{2\,a{{\rm e}^{2\,c+d{x}^{n}}}+2\,{{\rm e}^{c}}b}{\sqrt{{a}^{2}{{\rm e}^{2\,c}}-{{\rm e}^{2\,c}}{b}^{2}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -2 \, b e^{n} \int \frac{e^{\left (d x^{n} + n \log \left (x\right ) + c\right )}}{a^{2} e x e^{\left (2 \, d x^{n} + 2 \, c\right )} + 2 \, a b e x e^{\left (d x^{n} + c\right )} + a^{2} e x}\,{d x} + \frac{e^{n - 1} x^{n}}{a n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.37508, size = 1381, normalized size = 15.87 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (e x\right )^{n - 1}}{a + b \operatorname{sech}{\left (c + d x^{n} \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (e x\right )^{n - 1}}{b \operatorname{sech}\left (d x^{n} + c\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]